﻿<style>
    #map-canvas425321423y78ydgf23t87 {
        height: 400px;
        width: 500px;
    }
</style>
<script src="https://maps.googleapis.com/maps/api/js?sensor=false&language=pl"></script>
<script>
    function initializeMap425321423y78ydgf23t87() {

        var directionsService = new google.maps.DirectionsService();
        var directionsDisplay = new google.maps.DirectionsRenderer();
        var gdansk = new google.maps.LatLng(54.371906, 18.616290);
        var mapOptions = {
            zoom: 6,
            center: gdansk
        };
        var map = new google.maps.Map(document.getElementById('map-canvas425321423y78ydgf23t87'), mapOptions);
        directionsDisplay.setMap(map);

        var start = 'Gdansk, Poland';
        var end = 'Gdansk, Poland';
        var waypts = [{ location: 'Krakow, Poland', stopover: true }, { location: 'Warsaw, Poland', stopover: true }];

        var request = {
            origin: start,
            destination: end,
            waypoints: waypts,
            optimizeWaypoints: false,
            avoidTolls: true,
            travelMode: google.maps.TravelMode.DRIVING
        };

        directionsService.route(request, function(response, status) {
            if (status == google.maps.DirectionsStatus.OK) {
                directionsDisplay.setDirections(response);
            }
        });
    }

    google.maps.event.addDomListener(window, 'load', initializeMap425321423y78ydgf23t87);
</script>
<div id="map-canvas425321423y78ydgf23t87"></div>